﻿//校验打印的次数

    //打印次数的校验  
    function checkPrint(tempType) 
    {
        var orderId = document.getElementById("hAllocateMasterID").value;     
        var type = tempType;
        
        if((orderId != 0)&&(orderId != ""))
        {
            var response = Ajax.PrintNumCheck.GetPrintNum(type,orderId+"");          //4:表示为调拔单类型  
            var numTemp = response.value;

            if(numTemp>0)
            {   
                document.getElementById("hNum").value = (numTemp+1);         
                return confirm("已是第“"+(numTemp+1)+"”次打印！是否确认打印！");                                      
            }             
        }
        else
        {
            alert("请选择你要打印的单据!");
            return false;
        }  
    } 

